package com.tledu.springboot04.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {

    private Integer id;
    private String username;
    private String password;
    private String nickname;
    private Integer age;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    private String schoolName;
    private Integer locked;
    private Integer delState;
    private Date createTime;
    private Date updateTime;


    //关联表字段
    private List<Role> roleList;//角色list

}
